import {listApplicationConfig} from "@/api/system/applicationConfig";

export default {
  name: 'ApplicationConfig',
  data() {
    return {
      // 遮罩层
      loading: true,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 100,
        sort: undefined,
        order: undefined,
        group: undefined,
        name: undefined,
        fieldType: undefined,
        key: undefined,
        value: undefined,
        defaultValue: undefined,
        optionValue: undefined,
        isPrivate: undefined,
        help: undefined,
        createdAt: undefined,
        createdAtRange: [],
        updatedAt: undefined,
        updatedAtRange: [],
        isShow: undefined,
      },
      applicationConfigList: {},
      // 表单参数
      form: {},
      // 表单校验
      rules: {}
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询系统应用参数配置列表 */
    getList() {
      this.loading = true;
      listApplicationConfig(this.queryParams).then(response => {
        this.applicationConfigList = response.data;
        this.loading = false;
      });
    },
    /** 查看按钮操作 */
    handleView(row) {

    },
    /** 提交按钮 */
    submitForm: function () {

    },
  },
  mounted() {
    this.$nextTick(function () {

    });
  }
};
